/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package praticav.model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@Entity
@Table(name="tiposuva")
   
@SequenceGenerator(name = "seq_tipouva",  
                   sequenceName = "seq_tipouva",  
                   allocationSize = 1)

/**
 * @author Katiane
 */
public class TipoUva implements Serializable {
    
    @GeneratedValue(strategy = GenerationType.SEQUENCE,  
                 generator = "seq_tipouva")
      
    @Id private int uvacodigo;
    private String uvadescricao;

    public int getUvacodigo() {
        return uvacodigo;
    }

    public void setUvacodigo(int uvacodigo) {
        this.uvacodigo = uvacodigo;
    }

    public String getUvadescricao() {
        return uvadescricao;
    }

    public void setUvadescricao(String uvadescricao) {
        this.uvadescricao = uvadescricao;
    }
    
    public String toString(){ // Texto que vai aparecer na combobox
        return this.uvadescricao;
    }
}